<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<body>
    <button onclick="login()">login</button>
</body>
<script>
    function login(){
        $.post("https://dev.xian-yuan.net/frontis-gateway/frontis-auth-server/oauth/token",
        {
            "username": "qiaoximing",
            "password": "b3e42ac4cefe818fa2ee75d887a5156d",
            "grant_type": "password",
            "client_id": "frontis-authsystem",
            "client_secret": "B!9d@ta&m@u09&2"
        },function(result){
            console.log(JSON.stringify(result))
        })
    }
</script>
</html>